<%--
  Created by IntelliJ IDEA.
  User: 19339
  Date: 2022/4/18
  Time: 11:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int num=Integer.parseInt(request.getParameter("num"));
    int rnum=Integer.parseInt(request.getParameter("randomnum"));
    session.setAttribute("rnum",rnum);
    if(num==rnum){
        response.sendRedirect("ok.jsp");
    }
    else if(num>rnum){
        response.sendRedirect("larger.jsp");
    }
    else if(num<rnum){
        response.sendRedirect("smaller.jsp");
    }
%>
</body>
</html>
